#include<iostream>
#include<string>
using namespace std;
int n;
string s;
int main()
{
	cin >> n;
	cin >> s;
	bool flag = 0;
	for (int i = 1; i < s.size(); i++) {
		if (s[i] == 'J') {
			flag = 1;
			break;
		}
	}
	if (flag)cout << "win" << endl;
	else
		cout << "draw" << endl;
	return 0;
}